<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>jQuery实现美化版的单选框和复选框DEMO演示</title>
<link rel="stylesheet" href="css/jquery.pretty.css">
<style>
ul { list-style-type: none;}
li { display: inline-block;}
li { margin: 10px 0;}
input.pretty + label { font: 12px "Microsoft Yahei";}
</style>
<!- -[if (gte IE 6)&(lte IE 8)]>

      <script type="text/javascript" src="js/selectivizr.js"></script>

      <noscript><link rel="stylesheet" href="[fallback css]" /></noscript>

<![endif]- ->
</head>

<body>
<center>
<h1>jQuery单选框跟复选框美化代码演示</h1>
<h3>您的职业（单选框）</h3>
<ul class="dowebok">
    <li><input type="radio" name="radio" data-pretty="视觉设计师"></li>
    <li><input type="radio" name="radio" data-pretty="交互设计师"></li>
    <li><input type="radio" name="radio" data-pretty="前端工程师"></li>
    <li><input type="radio" name="radio" data-pretty="数据分析师"></li>
    <li><input type="radio" name="radio" disabled data-pretty="不可用"></li>
</ul>

<hr>

<h3>您擅长的技能（复选框）</h3>
<ul class="dowebok">
    <li><input type="checkbox" name="checkbox" disabled checked data-pretty="HTML"></li>
    <li><input type="checkbox" name="checkbox" data-pretty="CSS"></li>
    <li><input type="checkbox" name="checkbox" data-pretty="JavaScript"></li>
    <li><input type="checkbox" name="checkbox" data-pretty="SEO"></li>
    <li><input type="checkbox" name="checkbox" data-pretty="PHP"></li>
    <li><input type="checkbox" name="checkbox" data-pretty="JAVA"></li>
    <li><input type="checkbox" name="checkbox" data-pretty=".NET"></li>
</ul>

<script src="../../js/jquery.min.js"></script>
<script src="js/jquery.pretty.js"></script>
<script>
$(function(){
    $(':input').pretty();
});
</script>
</center>
</body>
</html>